package com.ssy.lingxi.order.entity;

import javax.persistence.*;
import java.io.Serializable;

/**
 * 支付方式与支付渠道
 * @author 万宁
 * @version 2.0.0
 * @date 2021-08-11
 */
@Entity
@Table(schema = "public", name = "ord_base_order_pay_channel", indexes = {@Index(name = "ord_base_order_pay_channel_pay_type_idx", columnList = "payType"), @Index(name = "ord_base_order_pay_channel_pay_channel_idx", columnList = "payChannel")})
public class BaseOrderPayChannelDO implements Serializable {
    private static final long serialVersionUID = 893121231335976891L;

    /**
     * 主键Id
     */
    @Id
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "ord_base_order_pay_channel_seq")
    @SequenceGenerator(sequenceName = "ord_base_order_pay_channel_seq", name = "ord_base_order_pay_channel_seq", allocationSize = 1)
    private Long id;

    /**
     * 支付类型枚举，定义在 OrderPayTypeEnum 中
     */
    @Column
    private Integer payType;

    /**
     * 支付类型名称
     */
    @Column(columnDefinition = "varchar(200)")
    private String payTypeName;

    /**
     * 支付渠道枚举，定义在 OrderPayChannelEnum 中
     */
    @Column
    private Integer payChannel;

    /**
     * 支付渠道名称
     */
    @Column(columnDefinition = "varchar(200)")
    private String payChannelName;

    /**
     * 状态，0-停用，1-启用
     */
    @Column
    private Integer status;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Integer getPayType() {
        return payType;
    }

    public void setPayType(Integer payType) {
        this.payType = payType;
    }

    public String getPayTypeName() {
        return payTypeName;
    }

    public void setPayTypeName(String payTypeName) {
        this.payTypeName = payTypeName;
    }

    public Integer getPayChannel() {
        return payChannel;
    }

    public void setPayChannel(Integer payChannel) {
        this.payChannel = payChannel;
    }

    public String getPayChannelName() {
        return payChannelName;
    }

    public void setPayChannelName(String payChannelName) {
        this.payChannelName = payChannelName;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
}
